Telegram Group & Telegram Channel
6. Program to Accept value of the side of Square and Calculate Area of Square.

import java.util.*;

class AreaOfSquare
{
public static void main(String args[])
{
int side, area;

Scanner sc = new Scanner(System.in);

System.out.println("Enter value of the sides of square");
side = sc.nextInt();

area = side * side;

System.out.println("Area of Square : " + area);
}
}

@java_codings



tg-me.com/java_codings/10
Create:
Last Update:

6. Program to Accept value of the side of Square and Calculate Area of Square.

import java.util.*;

class AreaOfSquare
{
public static void main(String args[])
{
int side, area;

Scanner sc = new Scanner(System.in);

System.out.println("Enter value of the sides of square");
side = sc.nextInt();

area = side * side;

System.out.println("Area of Square : " + area);
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/10

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Should You Buy Bitcoin?

In general, many financial experts support their clients’ desire to buy cryptocurrency, but they don’t recommend it unless clients express interest. β€œThe biggest concern for us is if someone wants to invest in crypto and the investment they choose doesn’t do well, and then all of a sudden they can’t send their kids to college,” says Ian Harvey, a certified financial planner (CFP) in New York City. β€œThen it wasn’t worth the risk.” The speculative nature of cryptocurrency leads some planners to recommend it for clients’ β€œside” investments. β€œSome call it a Vegas account,” says Scott Hammel, a CFP in Dallas. β€œLet’s keep this away from our real long-term perspective, make sure it doesn’t become too large a portion of your portfolio.” In a very real sense, Bitcoin is like a single stock, and advisors wouldn’t recommend putting a sizable part of your portfolio into any one company. At most, planners suggest putting no more than 1% to 10% into Bitcoin if you’re passionate about it. β€œIf it was one stock, you would never allocate any significant portion of your portfolio to it,” Hammel says.

Advance Java ‍ from tr


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA